﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace MvcEngine.Core.Configuration
{
    public class MeConfigurationSection: ConfigurationSection
    {
        [ConfigurationProperty("Permissions")]
        public PermissionsConfigurationElement Permissions
        {
            get
            {
                return this["Permissions"] as PermissionsConfigurationElement;
            }

            set
            {
                this["Permissions"] = value;
            }
        }

        [ConfigurationProperty("Folders")]
        public FoldersConfigurationCollection Folders
        {
            get
            {
                return this["Folders"] as FoldersConfigurationCollection;
            }

            set
            {
                this["Folders"] = value;
            }
        }

        [ConfigurationProperty("Languages")]
        public LanguageConfigurationCollection Languages
        {
            get
            {
                return this["Languages"] as LanguageConfigurationCollection;
            }

            set
            {
                this["Languages"] = value;
            }
        }

        [ConfigurationProperty("Extensions")]
        public ExtensionConfigurationCollection Extensions
        {
            get
            {
                return this["Extensions"] as ExtensionConfigurationCollection;
            }

            set
            {
                this["Extensions"] = value;
            }
        }

        [ConfigurationProperty("DataProvider")]
        public BaseConfigurationElement DataProvider
        {
            get
            {
                return this["DataProvider"] as BaseConfigurationElement;
            }

            set
            {
                this["DataProvider"] = value;
            }
        }
    }
}
